package com.ruoyi.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.domain.ApprovalRecord;
import com.ruoyi.domain.ErpPurchaseRequestManagement;
import com.ruoyi.domain.PurchaseDetailBom;

/**
 * 请购单管理Service接口
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
public interface  IErpPurchaseRequestManagementService extends IService<ErpPurchaseRequestManagement>
{
    /**
     * 查询请购单管理
     * 
     * @param id 请购单管理主键
     * @return 请购单管理
     */
    public ErpPurchaseRequestManagement selectErpPurchaseRequestManagementById(String id);

    /**
     * 查询请购单管理列表
     * 
     * @param erpPurchaseRequestManagement 请购单管理
     * @return 请购单管理集合
     */
    public List<ErpPurchaseRequestManagement> selectErpPurchaseRequestManagementList(ErpPurchaseRequestManagement erpPurchaseRequestManagement);

    /**
     * 新增请购单管理
     * 
     * @param erpPurchaseRequestManagement 请购单管理
     * @return 结果
     */
    public Map insertErpPurchaseRequestManagement(ErpPurchaseRequestManagement erpPurchaseRequestManagement);

    /**
     * 修改请购单管理
     * 
     * @param erpPurchaseRequestManagement 请购单管理
     * @return 结果
     */
    public int updateErpPurchaseRequestManagement(ErpPurchaseRequestManagement erpPurchaseRequestManagement);

    /**
     * 批量删除请购单管理
     * 
     * @param ids 需要删除的请购单管理主键集合
     * @return 结果
     */
    public int deleteErpPurchaseRequestManagementByIds(String[] ids);

    /**
     * 删除请购单管理信息
     * 
     * @param id 请购单管理主键
     * @return 结果
     */
    public int deleteErpPurchaseRequestManagementById(String id);
    Map<String, Integer> updateAudit(ErpPurchaseRequestManagement erpPurchaseRequestManagement);
    Map<String, Integer> submit(int id);

    Map<String, String> end(List<Integer> ids, String reason);

    int rejectaudit(int id);


    List<PurchaseDetailBom> PurchaseDetail(int id);

    List<PurchaseDetailBom> selectmaterials();


    List<PurchaseDetailBom> PurchaseDetailId(int id);

    List<ApprovalRecord> jilu(Integer id);
  int deleteDetailId(int id ,int wid);


    int updatesw(ErpPurchaseRequestManagement erpPurchaseRequestManagement);
}
